<?php
// 后台不需要登录验证的接口
Route::get('center', 'Admin\LoginController@getLogin');
Route::get('center/login', 'Admin\LoginController@getLogin');
Route::post('center/login', 'Admin\LoginController@postLogin');
Route::get('center/logout', 'Admin\LoginController@getLogout');

//功能模块
$admin = array(
    'prefix'=>'center',
    'namespace'=>'Admin',
    'middleware'=>['web','checkAdminlogin']
);

Route::group($admin, function () {
    Route::controller('index', 'IndexController'); //首页
    Route::controller('doctor', 'DoctorController'); //医师管理
    Route::controller('depart',"DepartController"); // 部门/科室
    Route::controller('member',"MemberController"); // 就诊人
    Route::controller('response',"ResponseController"); // 反馈列表
    Route::controller('user',"UserController"); // 用户
    Route::controller('comment',"CommentController"); // 用户
    Route::controller('favorable',"FavorableController"); // 用户
    Route::controller('setting',"SettingController"); // 用户
    Route::controller('appointment',"AppointmentController"); // 用户
    Route::controller('paylog',"PaylogController"); // 用户
    Route::controller('diymenu','WechatMenusController'); // 用户
    Route::controller('smstmpl','SmsTmplController'); // 用户
});